<head>
	<link rel="stylesheet" type="text/css" href="./html/common.css" />
</head>
<div class="content">
	<div class = "setTitle">
		分类管理 
		<div class="smallinput">
			<form action="trans.php?action=addartkind" method="POST">
				<input name="artkindname" type="text" placeholder="分类名称"/> <input type="submit" value="添加分类"/>
			</form>
		</div>
	</div>
	<form action="trans.php?action=updateartkind" method="POST">
		<table class="setTable">
			<tbody>
				<tr>
					<th>ID</th>
					<th>分类名称</th>
					<th>博文数目</th>
					<th>管理</th>
				</tr>
				
					{foreach $artkind as $value}
					<tr>
						<td>{$value.id}</td>
						<td><input name="{$value.id}" type="text" value="{$value.name}"></td>
						<td>{$value.num}</td>
						<td><a href="trans.php?action=deleteartkind&id={$value.id}">删除</a></td>
					</tr>
					{/foreach}
			</tbody>
		</table>
		<div class="adminSub">
			<input type="submit" value="提交"/>
		</div>
	</form>
</div>
